<?php

//不做伪静态的话，就这样直接访问，指定控制器和方法
//http://t.shunmeilai.com/index.php?solution/index

//四个参数，第一个，是过来的地址名，第二个是application之下的文件夹（主题，板块，子系统），第三个是控制器，对应的是文件名，第四个是方法，在controller里面定义的方法
//Route::rule('contact','index/contact/contact');


//前台首页
Route::rule('/','index');

//公司介绍
Route::rule('about','index/index/about');


//联系我们
Route::rule('contact','index/contact/contact');


//隐私政策
Route::rule('privacy-policy','index/index/privacyPolicy');
//服务条款
Route::rule('logistics-policy','index/index/logisticsPolicy');
//FAQ / Q & A
Route::rule('faq','index/index/faq');

//产品详情
Route::rule('product/:id','index/product/details')->pattern(['id'=>'[0-9a-zA-Z_-]+']);
//产品列表
Route::rule('category-product/:category','index/product/index')->pattern(['category'=>'[0-9a-zA-Z_-]+']);
Route::rule('category-product','index/product/index');

//新闻详情
Route::rule('news/:id','index/news/details')->pattern(['id'=>'[0-9a-zA-Z_-]+']);
//新闻列表
Route::rule('news','index/news/list');

//案例详情
Route::rule('solution/:id','index/solution/details')->pattern(['id'=>'[0-9a-zA-Z_-]+']);
//案例列表
Route::rule('solution','index/solution/index');

Route::rule('inquiry-success','index/index/inquirySuccess');